package com.pifuke.patient;

import android.app.Activity;
import android.net.http.SslError;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.webkit.SslErrorHandler;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebSettings.LayoutAlgorithm;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.Toast;
import cn.o.app.event.listener.OnSelectedChangeListener;
import cn.o.app.ui.OStateViewFrame;
import cn.o.app.ui.OTab;

import com.pifuke.patient.SymptomActivity.SymptomExtra;
import com.smiier.skin.net.SymptomPatientTask.SymptomItemInfo;
import com.smiier.skin.net.SymptomPatientTask.SymptomPatientItem;
import com.smiier.skin.ui.BasicActivity;
import com.smiier.skin.util.GlobalSettings;
import com.umeng.analytics.MobclickAgent;

public class SymptomInfoActivity extends BasicActivity {

	private WebView webview;
	private String url;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.setContentView(R.layout.activity_symptom_pation_info);
		
		this.setNavTitle("病理介绍");

		webview = (WebView) findViewById(R.id.info_webview);

		url = getIntent().getStringExtra("url");
		
		

		WebSettings webSettings = webview.getSettings();      
        webSettings.setJavaScriptEnabled(true); 
        webSettings.setUseWideViewPort(true); 
        webSettings.setLoadWithOverviewMode(true); 
//        webview.loadUrl("http://123.57.2.103/Symptom/cuochuang.html"); 
        
        
        if(url != null){
        	webview.loadUrl(url);
        }else{
        	Toast.makeText(this, "地址错误", Toast.LENGTH_SHORT).show();
        	this.finish();
        }
        
        

	}

/*	@Override
	protected void onResume() {
		super.onResume();
		MobclickAgent.onResume(this);
	}

	@Override
	protected void onPause() {
		super.onPause();
		
		MobclickAgent.onPause(this);
	}*/
}
